# Are we currently in bootstrap process?
sub bootstrapping()
{
    use CCNCore::Home;
    return ! -e CCNCore::Home::config.'/local/bootstrapped';
}

# Are we currently in upgrade process?
sub upgrading()
{
    use CCNCore::Home;

    if(-e CCNCore::Home::manager.'/.package-upgraded')
    {
        unlink CCNCore::Home::config.'/local/upgraded';
        unlink CCNCore::Home::manager.'/.package-upgraded';
    }
    
    return ! -e CCNCore::Home::config.'/local/upgraded';
}

# Note: normally upgrading() ==> bootstrapping()
